package com.atearsan.multiflavors.view.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import com.atearsan.multiflavors.R;

public class NextActivity extends AppCompatActivity {
    Context context;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_next);
        context = this;

        //Toast.makeText(context, "PRO", Toast.LENGTH_SHORT).show();

        TextView textView = (TextView) findViewById(R.id.text);
        textView.setText("该textview的value在pro里被代码修改了, 点击试试看");
        textView.setOnClickListener(new View.OnClickListener(){

            @Override
            public void onClick(View v) {
                Intent intent = new Intent(context, ProActivity.class);
                startActivity(intent);
            }
        });
    }
}
